<template>
  <div>
    <div class="span-login text-[14px] flex flex-row justify-center cursor-default">其他方式登录</div>
    <div class="flex justify-center mt-[15px]">
      <el-image src="./weixin.png" class="w-[30px] h-[30px] cursor-pointer" @click="openWx"></el-image>
    </div>
  </div>
</template>

<script setup lang="ts">
const emits = defineEmits(["wxLogin"]);
const openWx = () => {
  emits("wxLogin");
};
</script>

<style lang="scss" scoped>
.span-login {
  position: relative;
  &::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 120px;
    height: 1px;
    content: "";
    background-color: #bebebe;
    transform: translateY(-50%);
  }
  &::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 120px;
    height: 1px;
    content: "";
    background-color: #bebebe;
    transform: translateY(-50%);
  }
}
</style>
